﻿@model IEnumerable<FMIS.Models.Referee>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Default.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Person.PersonFirstName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Status)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SeniorReferee)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.YouthReferee)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CareerStartDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MatchAllowance)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TravelAllowance)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.JerseySize)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TrainingShoes)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HobnailedBoots)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MatchesOffciatedNational)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MatchesOffciatedInternational)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MatchesAppointedNational)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MatchesAppointedInternational)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Comment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PublicComment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RefereeCode)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Person.PersonFirstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SeniorReferee)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.YouthReferee)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CareerStartDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MatchAllowance)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TravelAllowance)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.JerseySize)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TrainingShoes)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HobnailedBoots)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MatchesOffciatedNational)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MatchesOffciatedInternational)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MatchesAppointedNational)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MatchesAppointedInternational)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Comment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PublicComment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RefereeCode)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.RefereeId }) |
            @Html.ActionLink("Details", "Details", new { id=item.RefereeId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.RefereeId })
        </td>
    </tr>
}

</table>
